home *** CD-ROM | disk | FTP | other *** search
- Path: rcogate.rco.qc.ca!altitude!usenet
- From: ramrod@cam.org
- Newsgroups: comp.lang.c,comp.lang.c++
- Subject: H E L P
- Date: Tue, 02 Apr 96 06:30:47 GMT
- Organization: Home
- Message-ID: <N.040296.013047.18@DynamicPPP-185.HIP.CAM.ORG>
- NNTP-Posting-Host: dynamicppp-185.hip.cam.org
- X-Newsreader: Quarterdeck Message Center [1.0]
-
- Could anyone please tell me how to write the following program.
- Using nested looping, the output is supposed to look like this.
-
- Please enter your age in years (0 to end the program): 10
- Happy Birthday To You
- You are 10 Years Old
-
- \x01\x01\x01\x01\x01\x01\x0\x01\x01\x01(ten happy faces)
-
- The part that I am having a hard time with is the part that
- whatever number I enter for the age, I'm supposed to get the same number
- of happy faces, automatically. For example If I say I am 45 years old,
- then the program should show 45 happy faces.
-
-
-
-